.class Lrexsee/core/browser/Browser$4;
.super Lrexsee/core/browser/clazz/ErrorListeners$ErrorListener;
.source "Browser.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/browser/Browser;-><init>(Landroid/content/Context;Lrexsee/core/browser/Browser;Lrexsee/core/widget/Div;Lrexsee/core/browser/clazz/BrowserParent;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/browser/Browser;


# direct methods
.method constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/browser/Browser$4;->this$0:Lrexsee/core/browser/Browser;

    .line 173
    invoke-direct {p0}, Lrexsee/core/browser/clazz/ErrorListeners$ErrorListener;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lrexsee/core/browser/Browser$4;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 173
    iget-object v0, p0, Lrexsee/core/browser/Browser$4;->this$0:Lrexsee/core/browser/Browser;

    return-object v0
.end method


# virtual methods
.method public run(Landroid/content/Context;Lrexsee/core/browser/Browser;ILjava/lang/String;Ljava/lang/String;)V
    .locals 7
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "browser"    # Lrexsee/core/browser/Browser;
    .param p3, "errorCode"    # I
    .param p4, "description"    # Ljava/lang/String;
    .param p5, "failingUrl"    # Ljava/lang/String;

    .prologue
    .line 176
    iget-object v0, p0, Lrexsee/core/browser/Browser$4;->this$0:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->function:Lrexsee/core/browser/RexseeBrowser;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "<html><head><title>"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v2, Lrexsee/core/lang/RexseeLanguage;->TITLE_ERROR:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "</title></head><body style=\'background-color:#000000;\'></body></html>"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lrexsee/core/browser/RexseeBrowser;->loadHTMLWithoutHistory(Ljava/lang/String;)V

    .line 177
    iget-object v0, p0, Lrexsee/core/browser/Browser$4;->this$0:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->TITLE_ERROR:Ljava/lang/String;

    sget-object v2, Lrexsee/core/lang/RexseeLanguage;->MESSAGE_WEAK_NETWORK:Ljava/lang/String;

    sget-object v3, Lrexsee/core/lang/RexseeLanguage;->ACTION_RESTART:Ljava/lang/String;

    check-cast p1, Landroid/app/Activity;

    .end local p1    # "context":Landroid/content/Context;
    invoke-virtual {p1}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const/high16 v5, 0x1040000

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v4

    new-instance v5, Lrexsee/core/browser/Browser$4$1;

    invoke-direct {v5, p0}, Lrexsee/core/browser/Browser$4$1;-><init>(Lrexsee/core/browser/Browser$4;)V

    .line 182
    const/4 v6, 0x0

    .line 177
    invoke-virtual/range {v0 .. v6}, Lrexsee/core/application/RexseeApplication;->confirm(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;Ljava/lang/Runnable;)V

    .line 183
    return-void
.end method
